#include <iostream>
#include <string>
#include <QtCore>
#include <string>
#include "camrec.h"

//some C stuff

#ifdef unix
    #include <sys/stat.h>
#else
    #include <direct.h>
#endif

//opencv stuff here 
#include "cv.h"
#include "highgui.h"

using namespace std;
int sample(){

	//cout << "Testing the conf parser gogogog!" << endl;

	QMap <QString,QString> *qm = new QMap<QString,QString>();
	qm->insert((QString)("OUTPUT_FILE"),(QString)("OUTPUT_FILE"));
	qm->insert((QString)("TEMP_DIR"),(QString)("TEMP_DIR"));

	parseGetConf(qm);

	cout<<"End of the parsing here "<< endl; 

    QMapIterator<QString, QString> i(*qm);
        while (i.hasNext()) {
             i.next();
                  cout << (string)i.key().toStdString() << ": " << (string)i.value().toStdString() << endl;
                 }
   
    //copunu temizle lan
    delete qm;


    cout << "Wassup filer " << endl;
    int a = mkdir("deynek",0755);

    if (a!=0)
        cout << "Error in file creation :" << a << endl;


	return 0;

	
}


